﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleTcpServer.WebSocketProtocols
{
    public class WebSocketProtocolBase: IWebSocketProtocol
    {
        private AuthenticationBase _authClass;

        public WebSocketProtocolBase(AuthenticationBase authenticateClass)
        {
            _authClass = authenticateClass;
        }


        public bool CheckAuthentication(Connection connection)
        {
           return _authClass.Authenticate(connection);
        }

        public DataFrameBase DataFrame
        {
            get;
            set;
        }
    }
}
